﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CtrLayer;
using ModelLayer;

namespace Simon
{
    class Program
    {

        private static TravelCtr travelCtr = new TravelCtr();
        private static AirlineCtr airlineCtr = new AirlineCtr();
       
        private static void test()
        {
            List < Airport >  list = new List<Airport>();
            
            

            Airport air = airlineCtr.FindAirportByCode("AAL");
            //list = travelCtr.getAdjacentAirports(air);
            list = airlineCtr.SelectAllAirports();
            Console.WriteLine(list.Count());
            foreach (Airport ap in list)
            {
                Console.WriteLine(list.Count());
                Console.WriteLine(ap.ToString());

            }
            
        }
        private void testPerson()
        {
            
        }
        private static void test2()
        {
            Airport airport = airlineCtr.FindAirportByCode("AAL");
            Console.WriteLine(airport.city);
            Console.Read();
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeey");
            //test();
            test2();

        }
    }
}
